import request from "@/utils/request";
const zlsLegend = "/zlsLegend";

// 根据指标查询图例
export function queryLegend(data) {
  return request({
    url: `${zlsLegend}/queryLegend`,
    method: "post",
    data: data,
  });
}

// 查询每个部门的指标等级
export function queryHospitalIndex(data) {
  return request({
    url: `${zlsLegend}/queryHospitalIndex`,
    method: "post",
    data: data,
  });
}

// 查询当前医院，返回经纬度
export function queryHospital(data) {
  return request({
    url: `${zlsLegend}/queryHospital`,
    method: "post",
    data: data,
  });
}

// 导出
export function exportData(data) {
  return request({
    url: `${zlsLegend}/exportData`,
    method: "post",
    data: data,
    responseType: "blob",
  });
}
